package com.gollum.jpa.common;


import static javax.persistence.criteria.Predicate.BooleanOperator.AND;
import static javax.persistence.criteria.Predicate.BooleanOperator.OR;

/**
 * @author Herther
 * @version 1.0.0
 * @ClassName Specifications.java
 * @createTime 2022年07月17日 13:51:00
 */
public class Specifications {

    public static <T> PredicateBuilder<T> and() {
        return new PredicateBuilder<>(AND);
    }
    public static <T> PredicateBuilder<T> or() {
        return new PredicateBuilder<>(OR);
    }
}

